 var email = document.getElementById("email");
    var name = document.getElementById("name");
    var password = document.getElementById("password");
    var passwordRepeat = document.getElementById("passwordRepeat");

    var ok = document.getElementById("ok");
    ok.function()
 {
     var emaill = email.value;
     var namel = name.value;
     var passwordvl = password.value;
     var passwordRepeatl = passwordRepeat.value;
     if (emaill == "" || passwordvl == ""|| passwordRepeatl=="" || namel =="") {
         document.getElementById('result').innerText = "账号或密码不能为空";

     } else if (emaill != user.ga) {
         document.getElementById('result').innerText = "该邮箱已存在,请重新输入！";

     } else if (passwordvl != passwordRepeatl) {
         document.getElementById('result').innerText = "两次输入的密码不一致,请重新输入";

     } else {

         document.getElementById('result').innerText = "注册成功";
         window.open("/cloudlibrary/admin/register.jsp");
     }
 }

